


<!DOCTYPE html>
<html id="htmlId">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
  <title>Coverage Report > PropertyConfig</title>
  <style type="text/css">
    @import "../../css/coverage.css";
    @import "../../css/idea.min.css";
  </style>
  <script type="text/javascript" src="../../js/highlight.min.js"></script>
  <script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>

<body>
<div class="content">
<div class="breadCrumbs">
Current scope:     <a href="../../index.html">all classes</a>
    <span class="separator">|</span>
    <a href="../index.html">com.ie.common.config</a>
</div>

<h1>Coverage Summary for Class: PropertyConfig (com.ie.common.config)</h1>

<table class="coverageStats">

<tr>
  <th class="name">Class</th>
<th class="coverageStat 
">
  Method, %
</th>
<th class="coverageStat 
">
  Line, %
</th>
</tr>
<tr>
  <td class="name">PropertyConfig</td>
<td class="coverageStat">
  <span class="percent">
    50%
  </span>
  <span class="absValue">
    (1/2)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    50%
  </span>
  <span class="absValue">
    (1/2)
  </span>
</td>
</tr>
  <tr>
    <td class="name">PropertyConfig$$SpringCGLIB$$0</td>
  </tr>
<tr>
  <td class="name"><strong>Total</strong></td>
<td class="coverageStat">
  <span class="percent">
    50%
  </span>
  <span class="absValue">
    (1/2)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    50%
  </span>
  <span class="absValue">
    (1/2)
  </span>
</td>
</tr>
</table>

<br/>
<br/>


<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package com.ie.common.config;
&nbsp;
&nbsp;import org.springframework.context.annotation.Configuration;
&nbsp;import org.springframework.context.annotation.PropertySource;
&nbsp;
&nbsp;/**
&nbsp; * @classname: PropertyConfig
&nbsp; * @Author: royxu
&nbsp; * @Description: /**
&nbsp; * @Configuration：这个注解表明该类是一个配置类，用于替代传统的XML配置。它是一个Bean定义的元数据，通过@，可以定义和管理Bean。
&nbsp; * @PropertySource：该注解用于指定一个属性源文件，这里指定的是类路径下的conf/conf.properties文件。这个文件中定义的属性可以在整个应用程序中使用。 这个类的主要功能是加载并配置一个名为conf.properties的属性文件，使得在应用程序中可以方便地访问和使用这个文件中定义的属性。
&nbsp; * @Date: 2025/4/14  22:26
&nbsp; * @Param:
&nbsp; * @version: 1.0
&nbsp; */
&nbsp;@Configuration
&nbsp;@PropertySource(value = {&quot;classpath:conf/conf.properties&quot;})
<b class="fc">&nbsp;public class PropertyConfig {</b>
&nbsp;    public static String getProperty(String key) {
&nbsp;        // System.out.println(&quot;This is getProperty!&quot;);
&nbsp;        // System.out.println(key);
<b class="nc">&nbsp;        return System.getProperty(key);</b>
&nbsp;
&nbsp;    }
&nbsp;
&nbsp;}
</code>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @end
    @*/

    if (!msie || msie && msie9) {
      hljs.highlightAll()
      hljs.initLineNumbersOnLoad();
    }
})();
</script>

<div class="footer">
    
    <div style="float:right;">generated on 2025-06-15 18:23</div>
</div>
</body>
</html>
